const express = require('express')

const router = express.Router()

const noticeHandler = require('../../router_handler/admin/notice')


//增加公告
router.post('/admin/notice', noticeHandler.addNotice)

//更新公告
router.put('/admin/notice', noticeHandler.updateNotice)

//删除公告
router.delete('/admin/notice/:id', noticeHandler.delNotice)

//获取公告列表
router.get('/admin/notice', noticeHandler.getNoticeList)

//根据id获取公告
router.get('/admin/notice/:id', noticeHandler.getNotice)


module.exports = router